Imports System.Configuration

Public Class ConexionDA
    Public Shared Function ObtenerCnx() As String
        Dim strCnx As String

        Try
            strCnx = ConfigurationManager.ConnectionStrings("CadenaConexion").ConnectionString
        Catch ex As Exception
            Throw New Exception(ex.Message)
        End Try

        Return strCnx
    End Function
End Class
